package com.ljm.notice.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 新闻公告
 * </p>
 *
 * @author HuamingChen
 * @since 2020-10-29
 */

@ApiModel(value="LjmNoticeDto对象", description="新闻公告")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LjmNoticeDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "版本号")
    private Long version;

    @ApiModelProperty(value = "创建人")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    private String editor;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime editTime;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDelete;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "来源")
    private String fdOrigin;

    @ApiModelProperty(value = "类型")
    private Integer fdType;

    @ApiModelProperty(value = "内容")
    private String fdContent;

    @ApiModelProperty(value = "机构id")
    private Long orgId;

    @ApiModelProperty(value = "页码")
    private Integer pageNo;

    @ApiModelProperty(value = "页大小")
    private Integer pageSize;

    public LjmNoticeDto() {
    }

    public LjmNoticeDto(String title, String fdOrigin, Integer fdType, Integer pageNo, Integer pageSize) {
        this.title = title;
        this.fdOrigin = fdOrigin;
        this.fdType = fdType;
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
}
